export interface ResType<T> {
  code: number
  data?: T
  msg: string
  err?: string
}

export interface PageResType<T> {
  count: number
  next?: string
  previous?: string,
  results?: T[]
}


export interface Category {
  id: Number,
  title: String
}

export interface Tag {
  id: number
  text: String
}

export interface User {
  id: number,
  username: String
}

export interface Article {
  id: number
  title: String
  body: String
  body_html: String
  toc_html: String
  category: Category
  tags: Array<Tag>
  avatar: String
  author: User
  created: String
}
